<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>退款记录表列表</title>
    <#include "/view/admin/headList.html"/>


    <script type="text/javascript">

        $(function() {
            //初始化
        });
    </script>
</head>
<body>


<div class="table-class">
    <div class="panel panel-default" style="margin: 10px 10px 10px;">
        <div class="panel-body">
            <form class="bs-example bs-example-form" role="form">

                <div class="input-group">
                    <span class="input-group-addon">订单号</span>
                    <input type="text" id="orderCode" class="form-control" value="${entity.orderCode!}" placeholder="请输入订单号">
                </div>
                <span class="bank-label">&nbsp;</span>

                <div class="input-group">
                    <span class="input-group-addon">商家</span>
                    <input type="text" id="businessId" class="form-control" value="${entity.businessId!}" placeholder="请输入商家">
                </div>
                <span class="bank-label">&nbsp;</span>

            <#--    <div class="input-group">
                    <span class="input-group-addon">用户</span>
                    <select id="userinfoId" name="userinfoId"
                            class="form-control selectpicker"   data-live-search="true"
                    >
                        <option value="">&#45;&#45;请选择用户&#45;&#45;</option>
                        <#list listUserinfoId as lv>
                            <option value="${lv.value!}"
                            <#if entity.userinfoId??&&entity.userinfoId == lv.value >
                                selected="selected"
                            </#if>
                            >${lv.name!}</option>
                        </#list>




                    </select>

                </div>
                <span class="bank-label">&nbsp;</span>-->



                <div class="input-group">
                    <span class="input-group-addon">开始退款时间</span>
                    <input type="text" id="updatetimeStart" class="form-control isdatetimepicker" value="<#if (entity.updatetimeStart)?? >${entity.updatetimeStart?string('yyyy-MM-dd HH:mm:ss')}</#if>" id="updatetimeStart" name="updatetimeStart" data-date-format="yyyy-mm-dd hh:ii:ss">
                </div>
                <span class="bank-label">&nbsp;</span>
                <div class="input-group">
                    <span class="input-group-addon">结束退款时间</span>
                    <input type="text" id="updatetimeEnd" class="form-control isdatetimepicker" value="<#if (entity.updatetimeEnd)?? >${entity.updatetimeEnd?string('yyyy-MM-dd HH:mm:ss')}</#if>" id="updatetimeEnd" name="updatetimeEnd" data-date-format="yyyy-mm-dd hh:ii:ss">
                </div>
                <span class="bank-label">&nbsp;</span>
                <div class="input-group">
                    <span class="input-group-addon">退款状态</span>
                    <select id="refundStatus" name="refundStatus"
                            class="form-control selectpicker"   data-live-search="true"
                    >
                        <option value="">请选择退款状态</option>
                        <option value="0" <#if entity.refundStatus??&&entity.refundStatus==0> selected="selected"</#if>>退款中</option>
                        <option value="1" <#if entity.refundStatus??&&entity.refundStatus==1> selected="selected"</#if>>退款成功</option>
                        <option value="2" <#if entity.refundStatus??&&entity.refundStatus==2> selected="selected"</#if>>退款失败</option>




                    </select>


                </div>



                <div class="input-group" style="text-align: right;">
                    <a class="btn btn-info"  href="javascript:query('${base}/czjrefund/listdetail.do')"><span class="glyphicon glyphicon-search"></span> 查找</a>

                </div>
            </form>
        </div>
    </div>


    <table class="table table-hover table-list table-bordered">
        <thead>

        <tr class="table-head">
            <th>序号</th>
            <th class="label-hidden">主键</th>
            <th>订单号</th>
            <th>商家</th>
            <th>用户手机号</th>
            <th>退款金额</th>
            <th>退款时间</th>
            <th>退款状态</th>
        </tr>
        </thead>
        <tbody>
        <#list pagination.list as c>
            <tr>
                <td>${(pagination.pageNo-1)*pagination.pageSize+1+c_index}</td>
                <td class="label-hidden">${c.refundId!}</td>
                <td>${c.orderCode!}</td>

                <td>${c.businessName!}</td>

                <td>
                   ${c.phone!}
                </td>
                <td>${c.refundAmount!}</td>

                <td><#if c.updatetime?? >${c.updatetime?string('yyyy-MM-dd HH:mm:ss')}</#if></td>
                <td>
                    <#if c.refundStatus??>
                        <#if c.refundStatus==0><span class="label label-default">退款中</span>
                        <#elseif c.refundStatus==1><span class="label label-success">退款成功</span>
                            <#elseif c.refundStatus==2><span class="label label-danger">退款失败</span>

                        </#if>
                    </#if>
                   </td>



            </tr>








        </#list>

        </tbody>
    </table>


</div>
<script>

    function queryCondition(){
        var href="";
        href+='orderCode='+$('#orderCode').val();
        href+='&'
        href+='businessId='+$('#businessId').val();
        href+='&'
        href+='refundStatus='+$('#refundStatus').val();
        href+='&'
        href+='createtimeStart='+$('#createtimeStart').val()+"&";
        href+='createtimeEnd='+$('#createtimeEnd').val()+"&";
        href+='updatetimeStart='+$('#updatetimeStart').val()+"&";
        href+='updatetimeEnd='+$('#updatetimeEnd').val();

        return href;
    }

</script>

</body>
</html>
